/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-05-02
 * Time:21:38
 */
public class TestDemo {

    public static int add(int x,int y){
        return x+y;
    }

    public static double add(double x,double y,double z){
        return x+y+z;
    }

    public static void main(String[] args) {
        int x1=3;
        int y1=5;
        double x2=3.0;
        double y2=5.0;
        double z=1.0;

        System.out.println(add(x1,y1));
        System.out.println(add(x2,y2,z));
    }
}
